<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//手机号
			var phone = /^1[3,4,5,7,8][0-9]{9}$/;
			console.log(phone.test(13004970185));
			//邮箱号
			var mail = /^(\w*\.*)+@(\w?\d?)+(\.\w{2,})+$/;
			console.log(mail.test("18659441224@qq.com"));
			//身份证号
			var id = /^3506[0-9]{2}[1,2]{1}[0-9]{3}[0-9]{4}[0-9]{2}[0-9]{1}[1-9,x,y]{1}$/;
			console.log(id.test("35060229980115172z"));
		</script>
	</head>
	<body>
	</body>
</html>
